package org.astri.spitfire.entities;

import org.litepal.crud.DataSupport;

import java.util.Date;

/**
 * <pre>
 *     author : HuGuoDong
 *     e-mail : guodong_hu@126.com
 *     time   : 2018/01/23
 *     desc   :
 *     modified by :
 *     e-mail : xx_xxx@xx
 *     time   :
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class History extends DataSupport{

    private int readiness;
    private int HR;  // heart rate
    private int HRV; // heart rate variance
    private int SPO2;
    private int GSR;
    private String exercise; //
    private Date testDate; // ?

    public History() {
    }

    public History(int readiness, int HR, int HRV, int SPO2, int GSR, String exercise, Date testDate) {
        this.readiness = readiness;
        this.HR = HR;
        this.HRV = HRV;
        this.SPO2 = SPO2;
        this.GSR = GSR;
        this.exercise = exercise;
        this.testDate = testDate;
    }

    public int getReadiness() {
        return readiness;
    }

    public void setReadiness(int readiness) {
        this.readiness = readiness;
    }

    public int getHR() {
        return HR;
    }

    public void setHR(int HR) {
        this.HR = HR;
    }

    public int getHRV() {
        return HRV;
    }

    public void setHRV(int HRV) {
        this.HRV = HRV;
    }

    public int getSPO2() {
        return SPO2;
    }

    public void setSPO2(int SPO2) {
        this.SPO2 = SPO2;
    }

    public int getGSR() {
        return GSR;
    }

    public void setGSR(int GSR) {
        this.GSR = GSR;
    }

    public String getExercise() {
        return exercise;
    }

    public void setExercise(String exercise) {
        this.exercise = exercise;
    }

    public Date getTestDate() {
        return testDate;
    }

    public void setTestDate(Date testDate) {
        this.testDate = testDate;
    }

    @Override
    public String toString() {
        return "History{" +
                "readiness=" + readiness +
                ", HR=" + HR +
                ", HRV=" + HRV +
                ", SPO2=" + SPO2 +
                ", GSR=" + GSR +
                ", exercise='" + exercise + '\'' +
                ", testDate=" + testDate +
                '}';
    }
}
